package jd.jd2.service;

import jd.jd2.Equip;
import jd.jd2.dao.PlayerDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("playerService")
public class PlayerServiceImpl implements PlayerService {

    @Autowired
    private PlayerDao playerDao;

    /**
     * 升级装备
     *
     * @param e   原装备
     * @param map 在原装备上要升级的属性
     * @return
     */
    @Override
    public Equip updateEquip(Equip e, Map<String, String> map) {
        return playerDao.updateEquip(e,map);
    }

}
